package com.crane.oss.app.bean.request.appuser;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Getter
@Setter
@ToString
@ApiModel(description = "登录参数")
public class AppLoginRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "手机号码", name = "phone")
    @NotNull(message = "手机号码不能为空")
    private String phone;

    @ApiModelProperty(value = "密码", name = "password", required = false)
    private String password;

    @ApiModelProperty(value = "验证码", name = "captcha", required = false)
    private String captcha;

}
